Optimal. Leaf size=143 \[ -\frac {a^2}{30 x^3}+\frac {a^4}{30 x}-\frac {1}{30} a^5 \tanh ^{-1}(a x)-\frac {a \tanh ^{-1}(a x)}{10 x^4}+\frac {2 a^3 \tanh ^{-1}(a x)}{15 x^2}-\frac {2}{15} a^5 \tanh ^{-1}(a x)^2-\frac {\tanh ^{-1}(a x)^2}{5 x^5}+\frac {a^2 \tanh ^{-1}(a x)^2}{3 x^3}-\frac {4}{15} a^5 \tanh ^{-1}(a x) \log \left (2-\frac {2}{1+a x}\right )+\frac {2}{15} a^5 \text {PolyLog}\left (2,-1+\frac {2}{1+a x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.32, antiderivative size = 143, normalized size of antiderivative = 1.00, number of steps
used = 22, number of rules used = 8, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {6161, 6037,
6129, 331, 212, 6135, 6079, 2497} \begin {gather*} \frac {2}{15} a^5 \text {Li}_2\left (\frac {2}{a x+1}-1\right )-\frac {2}{15} a^5 \tanh ^{-1}(a x)^2-\frac {1}{30} a^5 \tanh ^{-1}(a x)-\frac {4}{15} a^5 \log \left (2-\frac {2}{a x+1}\right ) \tanh ^{-1}(a x)+\frac {a^4}{30 x}+\frac {2 a^3 \tanh ^{-1}(a x)}{15 x^2}-\frac {a^2}{30 x^3}+\frac {a^2 \tanh ^{-1}(a x)^2}{3 x^3}-\frac {\tanh ^{-1}(a x)^2}{5 x^5}-\frac {a \tanh ^{-1}(a x)}{10 x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 331
Rule 2497
Rule 6037
Rule 6079
Rule 6129
Rule 6135
Rule 6161
Rubi steps
\begin {align*} \int \frac {\left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}{x^6} \, dx &=-\left (a^2 \int \frac {\tanh ^{-1}(a x)^2}{x^4} \, dx\right )+\int \frac {\tanh ^{-1}(a x)^2}{x^6} \, dx\\ &=-\frac {\tanh ^{-1}(a x)^2}{5 x^5}+\frac {a^2 \tanh ^{-1}(a x)^2}{3 x^3}+\frac {1}{5} (2 a) \int \frac {\tanh ^{-1}(a x)}{x^5 \left (1-a^2 x^2\right )} \, dx-\frac {1}{3} \left (2 a^3\right ) \int \frac {\tanh ^{-1}(a x)}{x^3 \left (1-a^2 x^2\right )} \, dx\\ &=-\frac {\tanh ^{-1}(a x)^2}{5 x^5}+\frac {a^2 \tanh ^{-1}(a x)^2}{3 x^3}+\frac {1}{5} (2 a) \int \frac {\tanh ^{-1}(a x)}{x^5} \, dx+\frac {1}{5} \left (2 a^3\right ) \int \frac {\tanh ^{-1}(a x)}{x^3 \left (1-a^2 x^2\right )} \, dx-\frac {1}{3} \left (2 a^3\right ) \int \frac {\tanh ^{-1}(a x)}{x^3} \, dx-\frac {1}{3} \left (2 a^5\right ) \int \frac {\tanh ^{-1}(a x)}{x \left (1-a^2 x^2\right )} \, dx\\ &=-\frac {a \tanh ^{-1}(a x)}{10 x^4}+\frac {a^3 \tanh ^{-1}(a x)}{3 x^2}-\frac {1}{3} a^5 \tanh ^{-1}(a x)^2-\frac {\tanh ^{-1}(a x)^2}{5 x^5}+\frac {a^2 \tanh ^{-1}(a x)^2}{3 x^3}+\frac {1}{10} a^2 \int \frac {1}{x^4 \left (1-a^2 x^2\right )} \, dx+\frac {1}{5} \left (2 a^3\right ) \int \frac {\tanh ^{-1}(a x)}{x^3} \, dx-\frac {1}{3} a^4 \int \frac {1}{x^2 \left (1-a^2 x^2\right )} \, dx+\frac {1}{5} \left (2 a^5\right ) \int \frac {\tanh ^{-1}(a x)}{x \left (1-a^2 x^2\right )} \, dx-\frac {1}{3} \left (2 a^5\right ) \int \frac {\tanh ^{-1}(a x)}{x (1+a x)} \, dx\\ &=-\frac {a^2}{30 x^3}+\frac {a^4}{3 x}-\frac {a \tanh ^{-1}(a x)}{10 x^4}+\frac {2 a^3 \tanh ^{-1}(a x)}{15 x^2}-\frac {2}{15} a^5 \tanh ^{-1}(a x)^2-\frac {\tanh ^{-1}(a x)^2}{5 x^5}+\frac {a^2 \tanh ^{-1}(a x)^2}{3 x^3}-\frac {2}{3} a^5 \tanh ^{-1}(a x) \log \left (2-\frac {2}{1+a x}\right )+\frac {1}{10} a^4 \int \frac {1}{x^2 \left (1-a^2 x^2\right )} \, dx+\frac {1}{5} a^4 \int \frac {1}{x^2 \left (1-a^2 x^2\right )} \, dx+\frac {1}{5} \left (2 a^5\right ) \int \frac {\tanh ^{-1}(a x)}{x (1+a x)} \, dx-\frac {1}{3} a^6 \int \frac {1}{1-a^2 x^2} \, dx+\frac {1}{3} \left (2 a^6\right ) \int \frac {\log \left (2-\frac {2}{1+a x}\right )}{1-a^2 x^2} \, dx\\ &=-\frac {a^2}{30 x^3}+\frac {a^4}{30 x}-\frac {1}{3} a^5 \tanh ^{-1}(a x)-\frac {a \tanh ^{-1}(a x)}{10 x^4}+\frac {2 a^3 \tanh ^{-1}(a x)}{15 x^2}-\frac {2}{15} a^5 \tanh ^{-1}(a x)^2-\frac {\tanh ^{-1}(a x)^2}{5 x^5}+\frac {a^2 \tanh ^{-1}(a x)^2}{3 x^3}-\frac {4}{15} a^5 \tanh ^{-1}(a x) \log \left (2-\frac {2}{1+a x}\right )+\frac {1}{3} a^5 \text {Li}_2\left (-1+\frac {2}{1+a x}\right )+\frac {1}{10} a^6 \int \frac {1}{1-a^2 x^2} \, dx+\frac {1}{5} a^6 \int \frac {1}{1-a^2 x^2} \, dx-\frac {1}{5} \left (2 a^6\right ) \int \frac {\log \left (2-\frac {2}{1+a x}\right )}{1-a^2 x^2} \, dx\\ &=-\frac {a^2}{30 x^3}+\frac {a^4}{30 x}-\frac {1}{30} a^5 \tanh ^{-1}(a x)-\frac {a \tanh ^{-1}(a x)}{10 x^4}+\frac {2 a^3 \tanh ^{-1}(a x)}{15 x^2}-\frac {2}{15} a^5 \tanh ^{-1}(a x)^2-\frac {\tanh ^{-1}(a x)^2}{5 x^5}+\frac {a^2 \tanh ^{-1}(a x)^2}{3 x^3}-\frac {4}{15} a^5 \tanh ^{-1}(a x) \log \left (2-\frac {2}{1+a x}\right )+\frac {2}{15} a^5 \text {Li}_2\left (-1+\frac {2}{1+a x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.34, size = 114, normalized size = 0.80 \begin {gather*} \frac {a^2 x^2 \left (-1+a^2 x^2\right )-2 \left (3-5 a^2 x^2+2 a^5 x^5\right ) \tanh ^{-1}(a x)^2-a x \tanh ^{-1}(a x) \left (3-4 a^2 x^2+a^4 x^4+8 a^4 x^4 \log \left (1-e^{-2 \tanh ^{-1}(a x)}\right )\right )+4 a^5 x^5 \text {PolyLog}\left (2,e^{-2 \tanh ^{-1}(a x)}\right )}{30 x^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 219, normalized size = 1.53
method | result | size |
derivativedivides | \(a^{5} \left (\frac {\arctanh \left (a x \right )^{2}}{3 a^{3} x^{3}}-\frac {\arctanh \left (a x \right )^{2}}{5 a^{5} x^{5}}-\frac {\arctanh \left (a x \right )}{10 a^{4} x^{4}}+\frac {2 \arctanh \left (a x \right )}{15 a^{2} x^{2}}-\frac {4 \arctanh \left (a x \right ) \ln \left (a x \right )}{15}+\frac {2 \arctanh \left (a x \right ) \ln \left (a x -1\right )}{15}+\frac {2 \arctanh \left (a x \right ) \ln \left (a x +1\right )}{15}-\frac {1}{30 a^{3} x^{3}}+\frac {1}{30 a x}+\frac {\ln \left (a x -1\right )}{60}-\frac {\ln \left (a x +1\right )}{60}+\frac {2 \dilog \left (a x \right )}{15}+\frac {2 \dilog \left (a x +1\right )}{15}+\frac {2 \ln \left (a x \right ) \ln \left (a x +1\right )}{15}+\frac {\ln \left (a x -1\right )^{2}}{30}-\frac {2 \dilog \left (\frac {a x}{2}+\frac {1}{2}\right )}{15}-\frac {\ln \left (a x -1\right ) \ln \left (\frac {a x}{2}+\frac {1}{2}\right )}{15}+\frac {\left (\ln \left (a x +1\right )-\ln \left (\frac {a x}{2}+\frac {1}{2}\right )\right ) \ln \left (-\frac {a x}{2}+\frac {1}{2}\right )}{15}-\frac {\ln \left (a x +1\right )^{2}}{30}\right )\) | \(219\) |
default | \(a^{5} \left (\frac {\arctanh \left (a x \right )^{2}}{3 a^{3} x^{3}}-\frac {\arctanh \left (a x \right )^{2}}{5 a^{5} x^{5}}-\frac {\arctanh \left (a x \right )}{10 a^{4} x^{4}}+\frac {2 \arctanh \left (a x \right )}{15 a^{2} x^{2}}-\frac {4 \arctanh \left (a x \right ) \ln \left (a x \right )}{15}+\frac {2 \arctanh \left (a x \right ) \ln \left (a x -1\right )}{15}+\frac {2 \arctanh \left (a x \right ) \ln \left (a x +1\right )}{15}-\frac {1}{30 a^{3} x^{3}}+\frac {1}{30 a x}+\frac {\ln \left (a x -1\right )}{60}-\frac {\ln \left (a x +1\right )}{60}+\frac {2 \dilog \left (a x \right )}{15}+\frac {2 \dilog \left (a x +1\right )}{15}+\frac {2 \ln \left (a x \right ) \ln \left (a x +1\right )}{15}+\frac {\ln \left (a x -1\right )^{2}}{30}-\frac {2 \dilog \left (\frac {a x}{2}+\frac {1}{2}\right )}{15}-\frac {\ln \left (a x -1\right ) \ln \left (\frac {a x}{2}+\frac {1}{2}\right )}{15}+\frac {\left (\ln \left (a x +1\right )-\ln \left (\frac {a x}{2}+\frac {1}{2}\right )\right ) \ln \left (-\frac {a x}{2}+\frac {1}{2}\right )}{15}-\frac {\ln \left (a x +1\right )^{2}}{30}\right )\) | \(219\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.25, size = 228, normalized size = 1.59 \begin {gather*} -\frac {1}{60} \, {\left (8 \, {\left (\log \left (a x - 1\right ) \log \left (\frac {1}{2} \, a x + \frac {1}{2}\right ) + {\rm Li}_2\left (-\frac {1}{2} \, a x + \frac {1}{2}\right )\right )} a^{3} - 8 \, {\left (\log \left (a x + 1\right ) \log \left (x\right ) + {\rm Li}_2\left (-a x\right )\right )} a^{3} + 8 \, {\left (\log \left (-a x + 1\right ) \log \left (x\right ) + {\rm Li}_2\left (a x\right )\right )} a^{3} + a^{3} \log \left (a x + 1\right ) - a^{3} \log \left (a x - 1\right ) + \frac {2 \, {\left (a^{3} x^{3} \log \left (a x + 1\right )^{2} - 2 \, a^{3} x^{3} \log \left (a x + 1\right ) \log \left (a x - 1\right ) - a^{3} x^{3} \log \left (a x - 1\right )^{2} - a^{2} x^{2} + 1\right )}}{x^{3}}\right )} a^{2} + \frac {1}{30} \, {\left (4 \, a^{4} \log \left (a^{2} x^{2} - 1\right ) - 4 \, a^{4} \log \left (x^{2}\right ) + \frac {4 \, a^{2} x^{2} - 3}{x^{4}}\right )} a \operatorname {artanh}\left (a x\right ) + \frac {{\left (5 \, a^{2} x^{2} - 3\right )} \operatorname {artanh}\left (a x\right )^{2}}{15 \, x^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \left (- \frac {\operatorname {atanh}^{2}{\left (a x \right )}}{x^{6}}\right )\, dx - \int \frac {a^{2} \operatorname {atanh}^{2}{\left (a x \right )}}{x^{4}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} -\int \frac {{\mathrm {atanh}\left (a\,x\right )}^2\,\left (a^2\,x^2-1\right )}{x^6} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________